# coding:utf-8

class Person(object):
    def __init__(self, name, age=None):
        self.name = name
        self.age = age

    def run(self):
        print(f'{self.name} 在奔跑')

    def jump(self):
        print(f'{self.name} 在跳跃')

    def work(self):
        self.run()
        self.jump()


xiaomu = Person(name='小慕', age=10)
xiaomu.run()
xiaomu.jump()

dewei = Person(name='dewei')
dewei.jump()

dewei.top = 175
print(dewei.top)
# print(xiaomu.top)   # AttributeError: 'Person' object has no attribute 'top'
print(dewei.age)
print('=========')
xiaomu.work()
